﻿using System.Windows;

namespace WpfApp1
{
    /// <summary>
    ///     MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        public NameList Names { get; } = new NameList();

        private void Button_OnClick(object sender, RoutedEventArgs e)
        {
            Names.Insert(0, new PersonName("A", "B"));
        }
    }
}